import request from '@/utils/request'

// 查询实验安排列表
export function listExperiment(query) {
  return request({
    url: '/edu/experiment/list',
    method: 'get',
    params: query
  })
}

// 查询实验安排详细
export function getExperiment(id) {
  return request({
    url: '/edu/experiment/' + id,
    method: 'get'
  })
}

// 新增实验安排
export function addExperiment(data) {
  return request({
    url: '/edu/experiment',
    method: 'post',
    data: data
  })
}

export function addExperimentList(data) {
  return request({
    url: '/edu/experiment/addBatch',
    method: 'post',
    data: data
  })
}

// 修改实验安排
export function updateExperiment(data) {
  return request({
    url: '/edu/experiment',
    method: 'put',
    data: data
  })
}

// 删除实验安排
export function delExperiment(id) {
  return request({
    url: '/edu/experiment/' + id,
    method: 'delete'
  })
}
